package com.hershel.userservice.controller;

import com.hershel.userservice.entity.User;
import com.hershel.userservice.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(value = "/user")
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping(value = "/test")
    public List<User> test() {
        System.out.println("进来了");
        return userService.test();
    }
}
